//
//  NRWCarConfCell.m
//  NRWMall
//
//  Created by 张记 on 2018/5/24.
//  Copyright © 2018年 com.anpxd. All rights reserved.
//

#import "NRWCarConfCell.h"

@interface NRWCarConfCell ()
@property (weak, nonatomic) IBOutlet UILabel *configTitle;
@property (weak, nonatomic) IBOutlet UILabel *configValue;

@end


@implementation NRWCarConfCell

- (void)awakeFromNib {
    [super awakeFromNib];

}
-(void)setIndex:(NSIndexPath *)index{
    _index = index;
}
-(void)setCarConfig:(Childcarconf *)carConfig{
    _carConfig = carConfig;
    self.configTitle.text = carConfig.confName;

    if (_index.section < 4) {
        self.configValue.text = carConfig.infoName;
    }else{
        if (carConfig.selectedState == YES) {
            self.configValue.text = @"有";
        }else{
            
            self.configValue.text = @"无";

        }
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
